A5WS_Logged_In_User_Values Function

Syntax

P a5ws_Logged_In_User_Values([* pReturn [,* request [,* session ]]])

Arguments

pReturn

A dot variable containing returned values from the user table.

request

*

session

*

Description

Show available field values for current logged in user. All values will return as character.

Discussion

The A5WS_Logged_In_User_Values() function populates a dot variable with field values from the user table for the current logged in user. A list of valid field names that may be returned can be found by using the a5ws_User_File_Field_List function. All property values are character values regardless of the field type. If a user is not logged in, all returned values will be blank. There are a few restricted fields, such as the password, secques, and secqans fields that are not returned for security reasons.

Example

The following code on a web page defines a dot variable called pUser and then populates the variable. If the userid and email parameters are found for pUser, the values are shown on the web page.

<%A5
dim pUser as p
a5ws_logged_in_user_values(pUser)
if eval_valid("pUser.userid") then
? "User id: " + pUser.userid +"<br>"
end if
if eval_valid("pUser.email") then
?"User Email: " + pUser.email +"<br>"
end if
%>

Limitations

May be used on A5W pages in web applications only.

See Also